package com.yingwei.mining.appletversion;

import java.awt.*;
import java.awt.image.ImageObserver;

/**
 * Created by IntelliJ IDEA.
 * User: yingwei
 * Date: 2009-11-15
 * Time: 23:07:11
 * To change this template use File | Settings | File Templates.
 */
public class UnloadArea extends Device implements Drawable
{
    public UnloadArea( Position pos, Image img )
    {
        setPosition( pos );
        setImage(img);
    }

    public void draw(Graphics g, ImageObserver obsv)
    {
        g.drawImage( this.getImage(), this.getPosition().getX(), this.getPosition().getY(), obsv );
    }
}
